package com.yunji.framework_template.books.biz.service;

import com.yunji.framework_template.books.orm.persistence.model.BooksCrawled;
import com.yunji.framework_template.books.orm.persistence.mapper.BooksCrawledMapper;
import com.yunji.framework_template.common.web.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 * Created by fenglibin on 2019/01/18.
 */
@Service
public class BooksCrawledService {

    @Autowired
    private BooksCrawledMapper booksCrawledMapper;

    public int deleteByPrimaryKey(Integer id) {
        return booksCrawledMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksCrawled record) {
        return booksCrawledMapper.insert(record);
    }

    public int insertSelective(BooksCrawled record) {
        return booksCrawledMapper.insertSelective(record);
    }

    public BooksCrawled selectByPrimaryKey(Integer id) {
        return booksCrawledMapper.selectByPrimaryKey(id);
    }

    public BooksCrawled selectByUrlMd5(String urlMd5) {
        return booksCrawledMapper.selectByUrlMd5(urlMd5);
    }
    
    public BooksCrawled selectByUrlMd5TypeId(BooksCrawled record) {
        return booksCrawledMapper.selectByUrlMd5TypeId(record);
    }

    public int updateByPrimaryKeySelective(BooksCrawled record) {
        return booksCrawledMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksCrawled record) {
        return booksCrawledMapper.updateByPrimaryKey(record);
    }

    public List<BooksCrawled> selectByCondition(BooksCrawled record) {
        return booksCrawledMapper.selectByCondition(record);
    }

    public List<BooksCrawled> selectAll() {
        return booksCrawledMapper.selectAll();
    }

    public List<BooksCrawled> selectByPage(Page<BooksCrawled> page) {
        return booksCrawledMapper.selectByPage(page);
    }

    public Integer count(BooksCrawled record) {
        return booksCrawledMapper.count(record);
    }

    public int deleteByCondition(BooksCrawled record) {
        return booksCrawledMapper.deleteByCondition(record);
    }

}
